package com.ruoyi.system.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VMxTiktokShopDetailMapper;
import com.ruoyi.system.domain.VMxTiktokShopDetail;

/**
 * VIEWService业务层处理
 *
 * @author yushuaixm
 * @date 2024-08-16
 */
@Service
public class VMxTiktokShopDetailService {
    @Autowired
    private VMxTiktokShopDetailMapper vMxTiktokShopDetailMapper;

    /**
     * 查询VIEW
     *
     * @param id VIEW主键
     * @return VIEW
     */

    public VMxTiktokShopDetail selectVMxTiktokShopDetailById(Long id)
    {
        return vMxTiktokShopDetailMapper.selectVMxTiktokShopDetailById(id);
    }

    /**
     * 查询VIEW列表
     *
     * @param vMxTiktokShopDetail VIEW
     * @return VIEW
     */

    public List<VMxTiktokShopDetail> selectVMxTiktokShopDetailList(VMxTiktokShopDetail vMxTiktokShopDetail)
    {
        return vMxTiktokShopDetailMapper.selectVMxTiktokShopDetailList(vMxTiktokShopDetail);
    }

    /**
     * 新增VIEW
     *
     * @param vMxTiktokShopDetail VIEW
     * @return 结果
     */

    public int insertVMxTiktokShopDetail(VMxTiktokShopDetail vMxTiktokShopDetail)
    {
        return vMxTiktokShopDetailMapper.insertVMxTiktokShopDetail(vMxTiktokShopDetail);
    }

    /**
     * 修改VIEW
     *
     * @param vMxTiktokShopDetail VIEW
     * @return 结果
     */

    public int updateVMxTiktokShopDetail(VMxTiktokShopDetail vMxTiktokShopDetail)
    {
        return vMxTiktokShopDetailMapper.updateVMxTiktokShopDetail(vMxTiktokShopDetail);
    }

    /**
     * 批量删除VIEW
     *
     * @param ids 需要删除的VIEW主键
     * @return 结果
     */

    public int deleteVMxTiktokShopDetailByIds(Long[] ids)
    {
        return vMxTiktokShopDetailMapper.deleteVMxTiktokShopDetailByIds(ids);
    }

    /**
     * 删除VIEW信息
     *
     * @param id VIEW主键
     * @return 结果
     */

    public int deleteVMxTiktokShopDetailById(Long id)
    {
        return vMxTiktokShopDetailMapper.deleteVMxTiktokShopDetailById(id);
    }
}
